//
//  DefinitionsDelegate.h
//  Words2
//
//  Created by Mathieu Tozer on 14/09/06.
//  Copyright 2006 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
@class WordArrayController;

@interface DefinitionsDelegate : NSObject {
	IBOutlet NSTextField *mainDefinitionField;
	IBOutlet NSTextField *secondaryDefinitionField;
	IBOutlet NSTextField *wordTypeField;
	IBOutlet NSTextView *definitionTextBlob;
	IBOutlet WordArrayController* wordArrayController;
	IBOutlet NSArrayController* blobArrayController;
	IBOutlet NSArrayController* definitionsArrayController;
	
	IBOutlet NSArrayController *allWords;
	
}

//button outlets to set the fields with the highlighted text.
-(IBAction)setMainDefinition:(id)sender;
-(IBAction)setSecondaryDefinition:(id)sender;
-(IBAction)setWordType:(id)sender;

-(IBAction)newDefinitionForRank:(id)sender; //get the rank from the button itself

// blob creation / deletion
-(IBAction)addBlob:(id)sender;
-(IBAction)removeBlob:(id)sender;
-(IBAction)addDefinition:(id)sender;

-(IBAction)defineSelectedWord:(id)sender;


-(NSString *)blobCountInfo;
@end
